package com.jjiang.bbmall.order.enume;

public enum SubmitStatusEnum {
    SUCCESS(0, "成功"),
    TOKEN_ERROR(1, "验证令牌不通过"),
    PRICE_ERROR(2, "价格对比失败"),
    NO_STOCK_ERROR(3, "锁定库存失败");
    private final Integer code;
    private final String msg;

    SubmitStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
